package com.wyj.common;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author ：wyj
 * @description：TODO
 * @date ：2024/3/7 11:51 PM
 */
public class LogPortal {
    // BUSINESS_LOG 记录器
    private static final Logger log = LoggerFactory.getLogger("BUSINESS_LOG");

    public static void info(String msg, Object... objs) {
        log.info(msg, objs);
    }

    public static void debug(String msg, Object... objects) {
        log.debug(msg, objects);
    }

    public static void warn(String msg, Object... objects) {
        log.warn(msg, objects);
    }


    public static void error(String msg, Object... objects) {
        log.error(msg, objects);
    }

    public static void error(String msg, Throwable e) {
        log.error(msg, e);
    }
}
